#include <iostream>
using namespace std;
#include "code.h"

int main()
{
    //第一题
    test01 T1;
    cout << "该年生肖为："  <<  T1.Find_the_year(2022,29) << endl;

    //第二题
    test02 T2;
    cout << "该数列的前100项和为：" << T2.Sum_num(100) << endl;

    //第三题
    test03 T3;
    cout << "当a为6时，s的值为：" << T3.Sum_the_Num(6) << endl;

    //第四题
    cout << "请输入字符串:";
    string input;
    cin >> input; 
    test04 T4(input);
    T4.Cnt_Upper_and_Lower();
    cout << "该输入的字符串中，大学字母有：" << T4.get_upperNum() << "个；小写字母有：" << T4.get_lowerNum()  << "个。" << endl;
  
    //第五题
    cin.ignore(numeric_limits<streamsize>::max(), '\n'); 
    cout << "请输入字符串：";
    string sentence;
    getline(cin,sentence);
    test05 T5(sentence);
    T5.Turn_Sentence();
    cout << "转换为：" << T5.get_newsentence() << endl;

    return 0;
}
